﻿using System;
using Koonsoft.HYCRM.BLL;
using Koonsoft.HYCRM.Model;

public partial class Task_TaskDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindData();
        }
    }

    private void BindData()
    {
        if (Request.QueryString["ClientID"] != null)
        {
            int empolyeeID = new EmpolyeeBLL().GetEmpolyeeInfoByLoginName(User.Identity.Name).EmpolyeeID;

            ClientInfo client = new ClientBLL().GetClientInfoByClientID(Request.QueryString["ClientID"], empolyeeID);

            ClientNameLabel.Text = client.Name;
            TelephoneLabel.Text = client.Telephone;
            MobileLabel.Text = client.Mobile;
            AddressLabel.Text = client.Address;
            EmailLabel.Text = client.Email;
            IMLabel.Text = client.IM;
            FAXLabel.Text = client.Fax;
        }
    }
}